﻿@model Aga.GestionDeArchivos.Web.Models.Guarda.IngresoModel

@{
    ViewBag.Title = "Ingreso";
    Layout = "~/Views/Shared/_InternalLayout.cshtml";
}

@section Scripts
{
    <script type="text/javascript">

        $(document).ready(function () {
            $('#Ubicacion').change(function () {
                if ($('#Caja').val() != '') {
                    $('form').submit();
                }
            });
        });
    </script>
}

<div id="content">
    <table width="100%" border="0" cellpadding="0" cellspacing="0" class="box-style1">
        <tr>
            <td id="box2">
                <h2>
                    Ingreso</h2>

                    @using (Html.BeginForm())
                {
                    @Html.ValidationSummary(true)

                    <p>
                        @Html.LabelFor(model => model.Caja):
                        <br />
                        @Html.TextBoxFor(model => model.Caja)
                        @Html.ValidationMessageFor(model => model.Caja)
                        <br />
                        @Html.LabelFor(model => model.Ubicacion):
                        <br />
                        @Html.TextBoxFor(model => model.Ubicacion)
                        @Html.ValidationMessageFor(model => model.Ubicacion)
                        <br />
                    </p>
                    <p class="buttons alignleft">
                        @Html.ActionLink("Cancelar", "Index", "Home")
                        <input type="submit" value="Ingresar Caja" />
                    </p>
                }
            </td>
        </tr>
    </table>
</div>

